<template>
  <div class="index-head">
    <sticky :sticky-top="80">
      <div class="top-button">
        <div class="tip-wrap">
          <span class="left-tip">售卖中</span>
        </div>
        <ul>
          <li>课程包名称:{{ data.title }}</li>
          <li>授课类型:{{ data.type }}</li>
          <li>课程:共{{ data.subjectNumber }}个</li>
          <li>价格:共{{ data.price }}元</li>
          <li>销售:共{{ data.already }}家</li>
        </ul>
        <div style="float:right;">
          <el-button type="primary">下架</el-button>
        </div>
      </div>
    </sticky>
  </div>
</template>

<script>
  import Sticky from '@/components/Sticky'

  export default {
    components: {
      Sticky
    },
    data() {
      return {
        data: {}
      }
    }
  }
</script>

<style lang="scss">
  .index-head {
    .top-button {
      width: 100%;
      height: 70px;
      line-height: 70px;
      padding: 0 20px;
      position: relative;
      background-color: #ebf4ff;
      min-width: 1000px;

      ul {
        margin: 0;
        padding: 0;
        list-style: none;
        float: left;

        li {
          float: left;
          margin-right: 20px;
          color: #585858;
        }
      }

      .tip-wrap {
        height: 70px;
        line-height: 70px;
        text-align: center;
        float: left;
        width: 100px;
        margin-right: 20px;

        .left-tip {
          display: inline-block;
          width: 100%;
          height: 36px;
          line-height: 36px;
          text-align: center;
          border-radius: 4px;
          background-color: #1ebb90;
          color: #fff;
        }
      }
    }
  }
</style>
